package com.warmer.web.dal;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface IKnowledgegraphRepository {
	List<Map<String,Object>> getDomains();
	List<Map<String,Object>> getRecommendDomainList();
	List<Map<String,Object>> getDomainList(@Param("domainname")String domainname, @Param("createUser")String createUser);
	List<Map<String,Object>> getRelationshipList(@Param("domainId")Integer domainId,@Param("relationtype")Integer relationtype,@Param("shipName")String shipName);
	void saveDomain(@Param("params") Map<String, Object> map);
	void updateDomain(@Param("params") Map<String, Object> map);
	void deleteDomain(@Param("id") Integer id);
	List<Map<String,Object>> getDomainByName(@Param("domainname") String domainname);
	List<Map<String,Object>> getDomainById(@Param("domainId")Integer domainId);

	void saveNodeImage(@Param("maplist") List<Map<String, Object>> mapList);
	void saveNodeContent(@Param("params") Map<String, Object> map);
	void updateNodeContent(@Param("params") Map<String, Object> map);
	List<Map<String,Object>> getNodeImageList(@Param("domainId") Integer domainId,@Param("nodeId") Integer nodeId);
	List<Map<String,Object>> getNodeContent(@Param("domainId") Integer domainId,@Param("nodeId") Integer nodeId);
	void deleteNodeImage(@Param("domainId") Integer domainId,@Param("nodeId") Integer nodeId);
}
